-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new "instance" object and use it for instance name propagation #77
Conversation
about limit lengththe-federation.info database has this: select node.domain,LENGTH(d::text) as l from (select node_id,data->'metadata'->'nodeName'::text as d from node_info where data->'metadata'->'nodeDescription' IS NOT NULL) JOIN node on node.id=node_id order by l desc limit 30;
|
|
I propose limit of 500 , so #78 would be exactly 10x |
@jhass request your comments :) |
@jhass added max length of 500 to it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the instance.name
property itself should obviously be optional, I'd actually favor to make the instance
object itself mandatory. That is I think it would be preferable for an instance without a configured name to expose "instance": {}
or "instance: { "name": null }
always, such that a client who validated the response against the schema can be sure to always have an object at instance
and save a null check.
Co-authored-by: Jonne Haß <[email protected]>
squash-merged your changes and made instance required |
@@ -21,6 +22,18 @@ | |||
"2.2" | |||
] | |||
}, | |||
"instance":{ | |||
"description": "Metadata specific to the instance. An instance is a the concrete installation of a software running on a server.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo An instance is a the concrete [...]
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ups, sorry, mind opening a follow up? 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh sorry I'm bad at typos too 😓
We migt at cSpell linter?
PS: @pfefferle if you want just open a pull ❤️
move wily used
nodeName
into the normal spec.this also should contain more instance configured specific information.